package com.itany.cloud.util;

import com.alibaba.csp.sentinel.slots.block.BlockException;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/5/31 9:58
 * Version:1.0-SNAPSHOT
 * Description:
 */
public class ExceptionUtil {

    // 全局Sentinel异常方法必须被static所修饰
    // 其他要求与局部的基本一致
    public static ResponseResult handlerException(BlockException e){
        return ResponseResult.fail("全局Sentinel异常,异常为:"+e);
    }

}
